﻿#pragma once
#include <graphics.h>
#include <cmath>
#include <stdio.h>
#include <vector>
#include <math.h>
#include <string.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846

#endif

//void drawPFD(int x0, int y0, float r, float pitch, float roll);
void drawlunzi(int x, int y, int length, int wideth, double size);
void drawLanding(int x, int y, int length, int wideth, double landing, double size);
void drawSpeedMax(int x, int y, int length, int wideth, double size);
void drawSpeedMin(int x, int y, int length, int wideth, double size);
void drawSpeedMidum(int x, int y, int length, int wideth, double size);
void drawAirbusAltitudeScale(int x, int y, int width, int height, float current_alt);
void drawSpeed(int x, int y, int width, int height, float current_speed);
void drawAttitudeIndicator(int x0, int y0, int width, int height, float radius, float pitch, float roll);
void drawBackGround(int x, int y, int length, int wideth, double size);
void drawFD(int x, int y, int length, int wideth, double size);
void drawVerticalSpeed(int x, int y, int length, int wideth, double speed, double size);
void drawAlt2(int x, int y, int length, int wideth, double size);
void drawbk(int bk_x, int bk_y, int bk_length, int bk_wideth, double speed, double size, int VS, double height);
void drawPFD(int x1, int y1, int l, int w, double verticalSpeed, double size, int choice, double airSpeed, double height, double airspeedYellow, double translateX, double translateY, int VS, double THR, int choice41, int flap, int SPD, double landing);
void draw_PFD(int x0, int y0, double height, double pitch, double roll, double Height, double speed, double heading,double Chuispeed,double landing);
void draw_heading(int x, int y, int width, int height, float current_alt);
bool is_ring();
#define X 150
#define Y 150
#define R 300

const float DEG2RAD = 3.14159265f / 180.0f;
const int length = 872 / 1.5;           // l: 显示器长度
const int wideth = 1123 / 1.5;
const int x = 0;
const int y = 0;
const int PFD_X = 0;
const int PFD_Y = 0;
const int PFD_WIDTH = 872 / 1.5;
const int PFD_HEIGHT = 1123 / 1.5;
//
//struct FlightData {
//	float pitch;    // 俯仰角（度）
//	float roll;     // 横滚角（度）
//	float height;   // 高度（英尺）
//	float speed;    // 空速
//	float heading;  // 航向
//};
//extern FlightData data;
